<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <title> </title>
 </head>

 <body>
 	<script type="text/javascript">
		function getAllParam() {
			var url = location.search; //获取url中"?"符后的字串
			var theRequest = new Object();
			if (url.indexOf("?") != -1) {
				var str = url.substr(1);
				var strs = str.split("&");
				for(var i = 0; i < strs.length; i ++) {
					var tmpStrs = strs[i].split("=");
					if (tmpStrs.length > 2) {
						var string = strs[i].split(tmpStrs[0] + "=");
						theRequest[tmpStrs[0]] = string[1];
					} else {
						theRequest[tmpStrs[0]] = tmpStrs[1];
					}
				}
			}

			return theRequest;
		}

		var rs = getAllParam();
		
		if (rs["irotation"] || rs["irotation"] == 0) {
			parent.parent.EgretH5Sdk.setOrientation(rs["irotation"]);
		}

		if (rs["eRotation"] || rs["eRotation"] == 0) {
			parent.window.gameIframe.EgretH5Sdk.changeOrientation(rs["eRotation"]);
		}
		parent.parent.EgretH5Sdk.closeBtn(rs["token"]); // execute main function
	</script>
 </body>
</html>
